package com.boot;

import com.service.IpService;
import org.lionsoul.ip2region.DbConfig;
import org.lionsoul.ip2region.DbSearcher;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@ComponentScan({"com.action","com.action.app","com.service","com.config","com.shiro","com.dao","com.task"})
@MapperScan("com.dao")
@ImportResource("classpath:spring-transaction.xml")
@ServletComponentScan(basePackages = {"com.config"})
@EnableScheduling
@EnableRedisHttpSession(redisNamespace="vpn:spring:session")
@EnableSwagger2
public class VpnManagerBoot {
    // 独立运行模式
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(com.boot.VpnManagerBoot.class);
    }
}
